package com.situ.mall.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.situ.mall.pojo.entity.OrderItem;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OrderVO {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long orderNo;

    private Integer userId;

    private Integer shippingId;

    private BigDecimal payment;

    private Integer paymentType;

    private Integer couponId;

    private String discount;

    private Integer postage;

    private Date paymentTime;

    private Date sendTime;

    private Date endTime;

    private Date closeTime;

    private Integer status;

    private Byte isDeleted;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    private Date updateTime;

    private List<OrderItem> list;
}
